image: Add gtk_image_set_keep_aspect_ratio()
authorBenjamin Otte <otte@redhat.com>
Thu, 15 Mar 2018 17:10:01 +0000 (18:10 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 16 Mar 2018 05:04:45 +0000 (06:04 +0100)
commitc6541853ab6cd593733ab310119fbd95056b32fe
treefea61c173419b1f2526a66afa733cd3bd6b56ed0
parent0a08c0388587500930a684d3bcf7d26d7dc7bd52
image: Add gtk_image_set_keep_aspect_ratio()

If set, the image will draw its contents while keeping their aspect
ratio. That means empty areas show up on the top/bottom or left/right.

Also move the special-case snapshotting code for icons to
GtkIconHelper. That's where it belongs.
docs/reference/gtk/gtk4-sections.txt
gtk/gtkiconhelper.c
gtk/gtkimage.c
gtk/gtkimage.h